import request from "@/utils/request";

// 查询易宝银行虚拟账户列表
export function listYeePayAccountBank(params) {
  return request({
    url: "/ecs/yeePayAccountBank/list",
    method: "get",
    params,
  });
}

// 查询易宝银行虚拟账户详细
export function getYeePayAccountBank(params) {
  return request({
    url: "/ecs/yeePayAccountBank",
    method: "get",
    params,
  });
}

export function queryYeePayAccountBank(params) {
  return request({
    url: "/ecs/yeePayAccountBank/queryBank",
    method: "get",
    params,
  });
}

// 新增易宝银行虚拟账户
export function addYeePayAccountBank(data) {
  return request({
    url: "/ecs/yeePayAccountBank",
    method: "post",
    data,
  });
}
export function accountBank(data) {
  return request({
    url: "/ecs/yeePayAccountBank/accountBank",
    method: "post",
    data,
  });
}

export function xibBindCard(data) {
  return request({
    url: "/ecs/yeePayAccountBank/xibBindCard",
    method: "post",
    data,
  });
}

export function authApplyConfirm(data) {
  return request({
    url: "/ecs/yeePayAccountBank/authApplyConfirm",
    method: "post",
    data,
  });
}

// 修改易宝银行虚拟账户
export function updateYeePayAccountBank(data) {
  return request({
    url: "/ecs/yeePayAccountBank",
    method: "put",
    data,
  });
}

// 删除易宝银行虚拟账户
export function delYeePayAccountBank(id) {
  return request({
    url: "/ecs/yeePayAccountBank/" + id,
    method: "delete",
  });
}
